<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="java.io.*"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.text.*"%>
<%@ page import="javax.sql.*"%>
<%@ page import="org.osgi.framework.*"%>
<%@ page import="com.gzgi.framework.*"%>
<%@ page import="com.gzgi.framework.util.*"%>
<%@ page import="com.gzgi.framework.context.*"%>
<%@ page import="com.gzgi.framework.config.*"%>
<%@ page import="com.gzgi.workflow.service.*"%>
<%
        SessionContainer.getContainer().reloadSessionFactory();
        EntityService entityService = EntityContainer.getContainer().getEntityService();
        Map dataMap = new HashMap();
        dataMap.put("name", "广州白云宾馆");
		dataMap.put("address", "广州越秀区环市东路367号");
		dataMap.put("city", "广州");
		dataMap.put("state", "广州越秀区");
		dataMap.put("country", "中国");
		dataMap.put("zip", "510065");
		dataMap.put("price", new Double(588));
		dataMap.put("actorId", "admin");
		dataMap.put("createDate",  new java.util.Date());
		 
		entityService.save("Hotel_Entity", dataMap);
		String hsql = " select a from Hotel_Entity as a where a.name like '%白云%' ";
		List list  = entityService.getList(hsql, null);
		out.println("rows:"+list);		
		
 %>